import request from '@/utils/request'

// 查询学生实验课申请登记列表
export function listStu_application(query) {
  return request({
    url: '/jwxt/stu_application/list',
    method: 'get',
    params: query
  })
}

// 查询学生实验课申请登记详细
export function getStu_application(applicationId) {
  return request({
    url: '/jwxt/stu_application/' + applicationId,
    method: 'get'
  })
}

// 新增学生实验课申请登记
export function addStu_application(data) {
  return request({
    url: '/jwxt/stu_application',
    method: 'post',
    data: data
  })
}

// 修改学生实验课申请登记
export function updateStu_application(data) {
  return request({
    url: '/jwxt/stu_application',
    method: 'put',
    data: data
  })
}

// 删除学生实验课申请登记
export function delStu_application(applicationId) {
  return request({
    url: '/jwxt/stu_application/' + applicationId,
    method: 'delete'
  })
}
// 驳回学生实验课申请登记
export function reject_application(applicationId) {
  return request({
    url: '/jwxt/stu_application/reject',
    method: 'post',
    data: applicationId
  })
}
// 通过学生实验课申请登记
export function pass_application(stu_form) {
  return request({
    url: '/jwxt/stu_application/pass',
    method: 'post',
    data:stu_form
  })
}
// 获取所有的合法实验室
export function confirm_application(application) {
  return request({
    url: '/jwxt/stu_application/confirm',
    method: 'post',
    data:application
  })
}
